<?php

namespace App\Models;


class StMedicalNumber extends StModel
{
    protected $table = 'st_medical_number';// 病案号表

    protected $primaryKey = 'id';

    public function isMedicalNumExit($medicalNumber)
    {
        return ($this->countBy(['medical_number' => $medicalNumber])) >= 1 ? 1 : 0;
    }
}